﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000421 RID: 1057
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EKLMKFCKLAA : IMessage<EKLMKFCKLAA>, IMessage, IEquatable<EKLMKFCKLAA>, IDeepCloneable<EKLMKFCKLAA>, IBufferMessage
	{
		// Token: 0x17000D9B RID: 3483
		// (get) Token: 0x06002F75 RID: 12149 RVA: 0x0008310D File Offset: 0x0008130D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EKLMKFCKLAA> Parser
		{
			get
			{
				return EKLMKFCKLAA._parser;
			}
		}

		// Token: 0x17000D9C RID: 3484
		// (get) Token: 0x06002F76 RID: 12150 RVA: 0x00083114 File Offset: 0x00081314
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EKLMKFCKLAAReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000D9D RID: 3485
		// (get) Token: 0x06002F77 RID: 12151 RVA: 0x00083126 File Offset: 0x00081326
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EKLMKFCKLAA.Descriptor;
			}
		}

		// Token: 0x06002F78 RID: 12152 RVA: 0x0008312D File Offset: 0x0008132D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EKLMKFCKLAA()
		{
		}

		// Token: 0x06002F79 RID: 12153 RVA: 0x00083140 File Offset: 0x00081340
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EKLMKFCKLAA(EKLMKFCKLAA other) : this()
		{
			this.gridList_ = other.gridList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002F7A RID: 12154 RVA: 0x0008316A File Offset: 0x0008136A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EKLMKFCKLAA Clone()
		{
			return new EKLMKFCKLAA(this);
		}

		// Token: 0x17000D9E RID: 3486
		// (get) Token: 0x06002F7B RID: 12155 RVA: 0x00083172 File Offset: 0x00081372
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TrainPartyGameGrid> GridList
		{
			get
			{
				return this.gridList_;
			}
		}

		// Token: 0x06002F7C RID: 12156 RVA: 0x0008317A File Offset: 0x0008137A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EKLMKFCKLAA);
		}

		// Token: 0x06002F7D RID: 12157 RVA: 0x00083188 File Offset: 0x00081388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EKLMKFCKLAA other)
		{
			return other != null && (other == this || (this.gridList_.Equals(other.gridList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002F7E RID: 12158 RVA: 0x000831BC File Offset: 0x000813BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.gridList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002F7F RID: 12159 RVA: 0x000831F0 File Offset: 0x000813F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002F80 RID: 12160 RVA: 0x000831F8 File Offset: 0x000813F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002F81 RID: 12161 RVA: 0x00083201 File Offset: 0x00081401
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.gridList_.WriteTo(ref output, EKLMKFCKLAA._repeated_gridList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002F82 RID: 12162 RVA: 0x00083228 File Offset: 0x00081428
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.gridList_.CalculateSize(EKLMKFCKLAA._repeated_gridList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002F83 RID: 12163 RVA: 0x00083261 File Offset: 0x00081461
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EKLMKFCKLAA other)
		{
			if (other == null)
			{
				return;
			}
			this.gridList_.Add(other.gridList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002F84 RID: 12164 RVA: 0x0008328F File Offset: 0x0008148F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002F85 RID: 12165 RVA: 0x00083298 File Offset: 0x00081498
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 98U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.gridList_.AddEntriesFrom(ref input, EKLMKFCKLAA._repeated_gridList_codec);
				}
			}
		}

		// Token: 0x040012C1 RID: 4801
		private static readonly MessageParser<EKLMKFCKLAA> _parser = new MessageParser<EKLMKFCKLAA>(() => new EKLMKFCKLAA());

		// Token: 0x040012C2 RID: 4802
		private UnknownFieldSet _unknownFields;

		// Token: 0x040012C3 RID: 4803
		public const int GridListFieldNumber = 12;

		// Token: 0x040012C4 RID: 4804
		private static readonly FieldCodec<TrainPartyGameGrid> _repeated_gridList_codec = FieldCodec.ForMessage<TrainPartyGameGrid>(98U, TrainPartyGameGrid.Parser);

		// Token: 0x040012C5 RID: 4805
		private readonly RepeatedField<TrainPartyGameGrid> gridList_ = new RepeatedField<TrainPartyGameGrid>();
	}
}
